package com.lili.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lili.pojo.Exam;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lili.vo.request.admin.ExamPageReqVO;
import com.lili.vo.request.troop.ExamQueryReqVO;
import com.lili.vo.request.troop.ExamQuesReqVO;
import com.lili.vo.request.officer.AutoGroupReqVO;
import com.lili.vo.request.officer.ScoreReqVO;
import com.lili.vo.response.admin.ExamPageRespVO;
import com.lili.vo.response.troop.TroopExamRespVO;
import com.lili.vo.response.officer.ScoreRespVO;

import java.util.List;



public interface ExamService extends IService<Exam> {

    IPage<ExamPageRespVO> pageList(ExamPageReqVO vo);

    com.lili.vo.response.officer.ExamRespVO selectExamById(Integer id);

    Integer editOrAdd(com.lili.vo.response.officer.ExamRespVO vo, Integer createUser);

    boolean delById(Integer id);

    List<TroopExamRespVO> selectRecentExam(Integer classesId, Integer userId);

    IPage<TroopExamRespVO> selecttroopExam(ExamQueryReqVO vo, Integer userId);

    Double correctExam(ExamQuesReqVO vo, Integer userId);

    String autoGroup(AutoGroupReqVO vo,Integer userId);

    IPage<ScoreRespVO> selectScorePage(ScoreReqVO vo);
}
